import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
import './assets/css/icon.css'
import './assets/css/subject.scss'
import $http from './utils/request.js'
const app = createApp(App)
app.config.globalProperties.$http = $http
import Video from "video.js";
import "video.js/dist/video-js.min.css"
app.config.globalProperties.$video = Video
import format from 'date-format'
app.config.globalProperties.format = format
const d3 = require('d3-format')

// 金额格式化
let rule = d3.formatSpecifier("f")
rule.precision = d3.precisionFixed(0.01)
rule.comma = ','
const formatNumber = d3.format(rule)
app.config.globalProperties.formatNumber = formatNumber

import './utils/getBasicData.js'

installElementPlus(app)
app
    .use(store)
    .use(router)
    .mount('#app')